//
//  match.m
//  Day8homework
//
//  Created by dllo on 16/5/13.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "match.h"
#import "Student.h"
#import "avg.h"
void match(struct Student a ,struct Student b) {
    if (avg(a) > avg(b)) {
        printf("%s的平均分更高\n", a.name);
    } else if (avg(a) < avg(b)) {
        printf("%s的平均分更高\n", b.name);
    }
}